package cn.ly.easymocktest;

import org.junit.Assert;

/**
 * Created by liuyu21 on 2017/10/21.
 */
public class MockHelloUnderTest{

    private MockHello listener;

    public void setListener(MockHello listener) {
        this.listener = listener;
    }

    public void testSayHello(String name){
        this.listener.sayHello(name);
    }

    public void testAdd(int a, int b, int result){
        Assert.assertEquals(result, listener.add(a,b));
    }

}
